home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_tem_ambmm2ba.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
2KB
|
75 lines
# Jones 3D Cog Script
#
# TEM_AmbMM2BA.cog
#
# [TRM]
#
# (C) 1999 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
message user0
message entered
message pulse
thing soundPos0 nolink
thing soundPos1 nolink
thing soundPos2 nolink
thing soundPos3 nolink
sector start_Amb2 linkID=1
sector stop_Amb1 linkID=0
sound ambient0=gen_cave_a1.wav local
sound ambient1=gen_cave_a2.wav local
sound ambient2=gen_cave_a3.wav local
sound ambient3=gen_cave_a4.wav local
sound ambient4=gen_cave_a5.wav local
sound ambient5=gen_cave_a6.wav local
int soundsOn=0 local
end
# ========================================================================================
code
user0:
# message sent by tiki1 door
soundsOn = 1;
setpulse(2.0);
return;
# ========================================================================================
entered:
if((GetSenderID() == 1) && (soundsOn == 0))
{
soundsOn = 1;
setpulse(2.0);
}
if(GetSenderID() == 0)
{
soundsOn = 0;
SetPulse(0.0);
}
return;
# ========================================================================================
pulse:
PlaySoundThing(ambient0[RandBetween(0, 5)], soundPos0[RandBetween(0, 3)], 1.0, 10, 20, 0);
return;
# ========================================================================================
end